{
  "properties" : { },
  "id" : "dfcdf8f85c734fdaa1ac6bfea7e97750",
  "script" : null,
  "groupId" : "fabfae3f0f454f16bb45486706b3d945",
  "name" : "修改告警类型",
  "createTime" : 1727070911399,
  "updateTime" : 1724892430129,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "update",
  "method" : "POST",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "{\n    \"id\":\"16\",\n    \"code\":\"888\",\n    \"typeDescr\":\"测试描述\",\n    \"typeName\":\"ceshi\"\n}",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : null,
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
return db.update("""
    update alarm_type set code = #{body.code}, type_descr = #{body.typeDescr},type_name = #{body.typeName}
    where id = #{body.id}
""")